﻿using System.Collections.Generic;

namespace winS.Unity
{
    /// <summary>
    /// <see cref="Roulette{T}"/> 的 int 实现.
    /// 赌注为 索引
    /// </summary>
    public class RouletteInt : Roulette<int>
    {
        public RouletteInt(IList<float> points) : base(points.Count)
        {
            for (int i = 0; i < points.Count; i++) AddBet(i, points[i]);
        }
        public RouletteInt(params float[] points) : base(points.Length)
        {
            for (int i = 0; i < points.Length; i++) AddBet(i, points[i]);
        }
    }
}